nav.navbar.navbar-inverse.navbar-fixed-top
      .container
        .navbar-header
          button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#navbar', aria-expanded='false', aria-controls='navbar')
            span.sr-only Toggle navigation
            span.icon-bar
            span.icon-bar
            span.icon-bar
          a.navbar-brand(href='/') Home
        #navbar.collapse.navbar-collapse
          ul.nav.navbar-nav
            li.active
              a(href='/') 主页
            li
              a(href='/category') 分类
            li
              a(href='/article') 文章
            li
              a(href='/about') 关于
          ul.nav.navbar-nav.navbar-right
            if (user)
              li 
                a #{user.name} 你好！
              li
                a(href='/account/logout') 注销
            else
              li
                a.loginLink(href='/account/login') 登录